PICTools Programmer's Reference
PIC2List MO:DCA Packet Functions

The P2PktModca structure is defined as:

 
Copy Code
typedef struct {
   BYTE     Type;
   DWORD    Length;
   DWORD    SFID;
   DWORD    SFLen;
   BYTE     SFData[1];
} P2PktModca;

P2LAddModca

 
Copy Code

P2PktModca* P2LAddModca(P2LIST* p2l, DWORD ID, DWORD Len, BYTE* data)

Add a modca PIC2List packet with SFID ID. If data == 0, then the packet is allocated and the data is set to 0. Returns 0 if a memory allocation error occurs.

P2LDeleteModca

 
Copy Code

P2LDeleteModca(p2l, pkt)   

P2LDeleteModca deletes a packet from the PIC2List. pkt must point into the PIC2List to the Type field of the packet to be deleted.  No validation is performed.


P2LFirstModca

 
Copy Code

P2LFirstModca(p2l)

P2LFirstModca returns a pointer to the first Modca packet in the PIC2List.  P2LFirstModca returns 0 if the list is empty or if the only packet in the list is the PIC2List EOF packet.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback